//
//  TB_CollectionView.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/11/3.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "TB_CollectionView.h"

@implementation TB_CollectionView

-(instancetype)initWithFrame:(CGRect)frame collectionViewLayout:(UICollectionViewLayout *)layout
{
    if (self=[super initWithFrame:frame collectionViewLayout:layout]) {
        
        self.backgroundColor=[UIColor whiteColor];
        
        if (@available(iOS 11.0, *)) {
            self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
            self.scrollIndicatorInsets = self.contentInset;
        }
    }
    
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
